package com.dongjiantong.biz.service;

import com.dongjiantong.biz.model.DrugStore;
import com.dongjiantong.mybatis.BaseService;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2017/12/11.
 */
public interface DrugStoreService extends BaseService<DrugStore>{

    /**
     * 根据类型查询兽药库
     * @param type
     * @param group
     * @return
     */
    List<DrugStore> SelectByType(Integer type,Integer group);

    /**
     * 疫苗的列表 (包含code和name)
     * @return List<Map<String,Object>>
     */
    List<Map<String,Object>> selectVaccineList(Map<String, Object> map);

    /**
     * 分页查询药品库
     */
    PageInfo<Map<String,Object>> getDrugStore(Integer type, String name, Integer pageNum, Integer pageSize);
}
